package com.zzxy.spring.service.impl;

import com.zzxy.spring.service.ITeacherService;
import org.springframework.stereotype.Service;

@Service("teacherService")
public class TeacherServiceImpl implements ITeacherService {

    @Override
    public int addUser() {
        System.out.println("add user ...");
        int i = 1 / 0;
        return 111;
    }

    @Override
    public void deleteUser() {
        System.out.println("delelte user ...");
    }

    @Override
    public void updateUser() {
        System.out.println("update user ...");
    }
}
